package cn.bdqn.controller;

import cn.bdqn.pojo.Video;
import cn.bdqn.service.VideoService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class VideoController {
    @Resource
    VideoService videoService;

    public Object list(String category, Long languageId){
        List<Video> lists = videoService.selectAll(category, languageId);
        Map<String,Object> map=new HashMap<>();
        map.put("list",lists);

        return map;
    }
}
